from django.conf.urls.defaults import *
import views

urlpatterns = patterns('',
        (r'^login/$', views.login),
        (r'^logout/$',views.logout),
        (r'^home/$', views.home),
        (r'^create_user/$', views.create_user),
        (r'^create_assignment/$', views.create_assignment),
        (r'^download_grades/$', views.download_grades),
        (r'^grades_csv/(\d{1,5})/$', views.grades_csv),
        (r'^tograde/$', views.tograde),
        (r'^viewgrades/$', views.viewgrades),
        (r'^viewgrade/(\d{1,5})/$', views.viewgrade),
        (r'^grade/(\d{1,5})/$', views.grade),
        (r'^viewassignments/$', views.viewassignments),
        (r'^submit/(\d{1,5})/$', views.submit),
        (r'^/media/site_media/(?P<path>.*)$', 'django.views.static.serve',
        {'groupgrading': '/media/site_media'}),
)
